<template>
  <div class="task-view-cfg">
    <pre><span class="code-eidtor" v-html="cfg" /></pre>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  data() {
    return {
      cfg: {}
    }
  },
  computed: {
    ...mapGetters([
      'curTaskConf'
    ])
  },
  mounted() {
    const jsonObj = this.curTaskConf
    this.cfg = JSON.stringify(jsonObj, null, 2)
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.task-view-cfg {
  padding: 20px;
}

</style>
